import request from '@/utils/request'
// 获取角色列表
export const getRoleListAPI = (params) => request.get('/sys/role', { params })

export const addRoleAPI = (data) => request.post('/sys/role', data)

export const delRoleAPI = (id) => request.delete(`/sys/role/${id}`)

export const updateRoleAPI = (data) => request.put(`/sys/role/${data.id}`, data)
